package service;

import pojo.Address;
import pojo.Restaurant;
import pojo.Subscribe;
import pojo.User;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface IUserService {

    int reset(User user);

    int recharge(Integer id, BigDecimal value);

    List<Address> getAddressList(Integer uid);

    int updateAddress(Address address);

    int newAddress(Address address);

    int setDefaultAddress(Integer addId);

    int deleteAddress(Integer addId);

    int subscribeRest(Subscribe subscribe);

    int cancelSubscribe(Subscribe subscribe);

    List<Restaurant> getMyCollections(Map<String, Object> map);

    int selectSubscribeTotal(Map<String, Object> map);
}
